import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/meetingDepart/list',
    method: 'get',
    params: params
  })
}
                
export function createMeetingDepart(data) {
  return request({
    url: '/meetingDepart/create',
    method: 'post',
    data: data
  })
}

export function updateMeetingDepart(id, data) {
  return request({
    url: '/meetingDepart/update/' + id,
    method: 'post',
    data: data
  })
}

export function deleteMeetingDepart(id) {
  return request({
    url: '/meetingDepart/delete/' + id,
    method: 'post'
  })
}

export function fetchAllMeetingDepartList() {
  return request({
    url: '/meetingDepart/listAll',
    method: 'get'
  })
}

export function updateStatus(id, params) {
  return request({
    url: '/meetingDepart/updateStatus/' + id,
    method: 'post',
    params: params
  })
}
